<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        var year = 10000
        var all = 10000 * 12
        for (var i = 1; i < 10; i++) {
            year *= 1.05
            all += year * 12
        }
        console.log(year)
        console.log(all)
    </script>
</body>

</html>